import { getColumnsData } from "../common";

const lotteryRecordListTable = [
  {
    user_id: "ID: 4997", // 用户ID
    user_name: "账号: 15555555555", // 用户名
    lottery_id: "1", // 中奖ID
    blind_box_id: "9", // 所属盲盒
    lottery_goods_title: "乐视智能手机", // 中奖商品标题
    blind_box_order_id: "15773", // 关联盲盒订单ID
    lottery_status: "已回收", // 奖品状态
    application_time: "2019-01-01 00:00:00", // 申请发货时间
    recovery_time: "2019-01-01 00:00:00", // 回收时间
    place_order_time: "2019-01-01 00:00:00" // 下单时间
  }
];

const headerList = [
  {
    width: "100px",
    label: "编号",
    prop: "id",
    sortable: true
  },
  {
    label: "购买用户",
    showValue: [
      {
        class: "",
        key: "user_id",
        tableType: "lotteryRecordList" // 表格类型,用于点击事件时,区分是哪个表格的按钮
      },
      {
        class: "",
        key: "user_name",
        tableType: "lotteryRecordList" // 表格类型,用于点击事件时,区分是哪个表格的按钮
      }
    ]
  },
  {
    width: "100px",
    label: "中奖商品ID",
    prop: "lottery_id"
  },
  {
    label: "所属盲盒",
    prop: "blind_box_id"
  },
  {
    width: "auto",
    label: "中奖商品标题",
    prop: "lottery_goods_title"
  },
  {
    label: "关联盲盒订单ID",
    prop: "blind_box_order_id"
  },
  {
    width: "110px",
    label: "奖品状态",
    prop: "lottery_status"
  },
  {
    label: "申请发货时间",
    prop: "application_time"
  },
  {
    label: "回收时间",
    prop: "recovery_time"
  },
  {
    label: "下单时间",
    prop: "place_order_time"
  }
];

const lotteryRecordListColumns = [];

getColumnsData(
  "lotteryRecordList",
  lotteryRecordListColumns,
  headerList,
  res => {
    console.log("lotteryRecordList", res);
  }
);
export { lotteryRecordListTable, lotteryRecordListColumns };
